<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var arr = [{
            name: "zs",
            pwd: "123"
        }, {
            name: "qwe",
            pwd: "789"
        }]

        var flag = arr.some(function (item) {
            return item.name === "zs" && item.pwd === "789"
        })
        console.log(flag)
    </script>
</body>

</html>